package com.glodon.paas.document.dao.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.glodon.paas.document.dao.domain.ProjectInfoEntity;

public interface ProjectInfoMapper {

    int deleteByPrimaryKey(String id);

    int insert(ProjectInfoEntity record);

    int insertSelective(ProjectInfoEntity record);

    ProjectInfoEntity selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ProjectInfoEntity record);

    int updateByPrimaryKey(ProjectInfoEntity record);

    int count(Map<String, Object> param);

    void deleteAllByOwnerId(@Param("ownerId")String ownerId);

    List<ProjectInfoEntity> selectProjectsByIds(List<String> ids);

    List<ProjectInfoEntity> selectAllProjects(String ownerId);

    ProjectInfoEntity getProjectByName(@Param("ownerId")String ownerId, @Param("name") String name);
}
